﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Proveedor
    
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
  
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.0/themes/base/jquery-ui.css" />
    <script src="../../Scripts/Proveedor.js" type="text/javascript"></script>
    <link href="../../Content/TablaProveedor.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" media="screen" href="../../Scripts/JqGrid/css/jquery-ui-custom.css" />
    <link rel="stylesheet" type="text/css" media="screen" href="../../Scripts/JqGrid/css/ui.jqgrid.css" />
    <link rel="stylesheet" type="text/css" media="screen" href="../../Scripts/JqGrid/css/ui.multiselect.css" />
    <!--
    <link rel = "stylesheet" type = "text/css" media = "screen" href = "../../Scripts/JqGrid/css/smoothness/jquery-ui-1.9.0.custom.css" />
    <link rel = "stylesheet" type = "text/css" media = "screen" href = "../../Scripts/JqGrid/css/ui.jqgrid.css" />
    <script src = "../../Scripts/JqGrid/js/jquery-1.7.2.min.js" type = "text/javascript"></script>
   
    <script src = "../../Scripts/JqGrid/js/src/i18n/grid.locale-en.js" type = "text/javascript"></script>
    <script src = "../../Scripts/JqGrid/js/src/grid.loader.js" type = "text/javascript"></script>
    <script src = "../../Scripts/TablaPrueba.js" type = "text/javascript"></script>
   
    -->
    <script src="../../Scripts/JqGrid/js/jquery.js" type="text/javascript"></script>
    <script src="../../Scripts/JqGrid/js/jquery-ui-custom.js" type="text/javascript"></script>
    <script src="../../Scripts/JqGrid/js/jquery.layout.js" type="text/javascript"></script>
    <script src="../../Scripts/JqGrid/js/src/i18n/grid.locale-en.js" type="text/javascript"></script>
    <script type="text/javascript">
        $.jgrid.no_legacy_api = true;
        $.jgrid.useJSON = true;
    </script>
    <script src="../../Scripts/JqGrid/js/ui.multiselect.js" type="text/javascript"></script>
    <script src="../../Scripts/JqGrid/js/jquery.jqGrid.js" type="text/javascript"></script>
    <script src="../../Scripts/JqGrid/js/jquery.tablednd.js" type="text/javascript"></script>
    <script src="../../Scripts/JqGrid/js/jquery.contextmenu.js" type="text/javascript"></script>

    <style type = "text/css">
    *{
	margin: 0;
	padding: 0;
}

body {
	font-size: 62.5%;
	font-family: Helvetica, sans-serif;
}

p {
	font-size: 1.3em;
	margin-bottom: 15px;
}

#page-wrap {
	width: 660px;
	background: white;
	padding: 20px 50px 20px 50px;
	margin: 20px auto;
	min-height: 500px;
	height: auto !important;
	height: 500px;
}

#page-wrap2{
	width: 660px;
	background: white;
	padding: 20px 50px 20px 50px;
	margin: 20px auto;
	min-height: 500px;
	height: auto !important;
	height: 500px;
}

#page-wrap3{
	width: 660px;
	background: white;
	padding: 20px 50px 20px 50px;
	margin: 20px auto;
	min-height: 500px;
	height: auto !important;
	height: 500px;
}

#Botones{
    width: 600px;
	margin-top: 25px;
}


#contact-area3{
    width: 600px;
	margin-top: 25px;
}

#contact-area3 input, #contact-area textarea {
	padding: 5px;
	width: 471px;
	font-family: Helvetica, sans-serif;
	font-size: 1.4em;
	margin: 0px 0px 10px 0px;
	border: 2px solid #ccc;
}

#contact-area3 input.submit-button {
	width: 100px;
	float: right;
	border: 2px solid #ccc;
}

#contact-area3 textarea:focus, #contact-area input:focus {
	border: 2px solid #900;
}

#Botones input.submit-button {
	width: 100px;
	float: right;
	border: 2px solid #ccc;
}

#contact-area4{
	width: 600px;
	margin-top: 25px;
}

#contact-area4{
    width: 600px;
	margin-top: 25px;
}

#contact-area4 input, #contact-area textarea {
	padding: 5px;
	width: 471px;
	font-family: Helvetica, sans-serif;
	font-size: 1.4em;
	margin: 0px 0px 10px 0px;
	border: 2px solid #ccc;
}

#contact-area4 input.submit-button {
	width: 100px;
	float: right;
	border: 2px solid #ccc;
}

#contact-area4 tablaDinamica 
{
    padding: 5px;
	width: 201px;
	font-family: Helvetica, sans-serif;
	font-size: 1.4em;
	margin: 0px 0px 10px 0px;
	border: 2px solid #ccc;    
}

#contact-area4 th 
{
    border:1px dotted 5E93B5;
    padding: 10px; 
    font-family: Helvetica, sans-serif;
    font-size: 1.4em;
}

#contact-area4 th 
{
    font-size: 1.4em;
    font-family: Helvetica, sans-serif;
    border-top: 2px solid 5E93B;
    border-right: 1px dotted #416D89;
    border-left:1px dotted #416D89;
    border-bottom:none;
    padding-top:10px;
    padding-right:3px;
    padding-left:20px;
    padding-bottom:12px;
}

#contact-area4 textarea:focus, #contact-area input:focus {
	border: 2px solid #900;
}

#contact-area input, #contact-area textarea {
	padding: 5px;
	width: 471px;
	font-family: Helvetica, sans-serif;
	font-size: 1.4em;
	margin: 0px 0px 10px 0px;
	border: 2px solid #ccc;
}

#contact-area textarea {
	height: 90px;
}

#contact-area textarea:focus, #contact-area input:focus {
	border: 2px solid #900;
}

#contact-area input.submit-button {
	width: 100px;
	float: right;
}

label {
	float: left;
	text-align: right;
	margin-right: 15px;
	width: 100px;
	padding-top: 5px;
	font-size: 1.4em;
}

</style>

<script type = "text/javascript">
    jQuery(document).ready(function () {
        jQuery("#list2").jqGrid({            
            var enviar = {
                RUC: $("#Text2").attr("value"),
                RazonSocial: $("#Text1").attr("value")
            }
            var jsonData = JSON.stringify(enviar);

            $.ajax({
            type: "POST",
            data: jsonData,
            dataType: "json",
            contentType: "application/json; charset=utf-8",
            url: "prueba"
            });
            colNames: ['Inv No','Date','Client','Amount','Tax','Total','Notes'],
            colModel: [
                      {name:'id',index:'id',width:55},
                      {name:'invdate',index:'invdate',width:90},
                      {name:'name',index:'name asc,invdate',width:100},
                      {name:'amount',index:'amount', width:80, align:"right"},
   		              {name:'tax',index:'tax', width:80, align:"right"},		
   		              {name:'total',index:'total', width:80,align:"right"},		
   		              {name:'note',index:'note', width:150, sortable:false}	
            ],
            rowNum:10,
            rowList:[10,20,30],
            pager: '#pager2',
            sortname: 'id',
            viewrecords: true,
            sortorder: "desc"
        });
    });
</script>


<body>

</p>
<div id="Botones">
    
    <input id="eliminar" type="submit" value="Eliminar" class="submit-button" />
    <input id="modificar" type="submit" value="Modificar" class="submit-button" />
    <input id="registrar" type="submit" value="Registrar" class="submit-button"/>
    
        
</div>
</p>
<div id = "registro">
    <div id="page-wrap">
               <div id="contact-area">
                       
                               <label for="RazonSocial">Razón Social:</label>
                               <input type="text" name="Name" id="RazonSocial"/>
                               
                               <label for="RUC">RUC:</label>
                               <input type="text" name="City" id="RUC" size="20"/>

                               <input type="submit" id = "botonRegistro" value="Registrar" class="submit-button" />
                       
                       
                       <div style="clear: both;"></div>
                       
                       
               
               </div>
       
       </div>
</div>

<div id = "page-wrap3">
    <div id = "contact-area4">
        <div id = "tablaDinamica">
          
        </div>
    </div>
</div>



<div id = "busqueda">
    <div id="page-wrap2">           
               <div id="contact-area3">
                               <label for="RazonSocial">Razón Social:</label>
                               <input type="text" name="Name" id="Text1"/>
                               
                               <label for="RUC">RUC:</label>
                               <input type="text" name="City" id="Text2" size="20"/>

                               <input type="submit" id = "botonBuscar" value="Buscar" class="submit-button" />
                       
                       <div style="clear: both;"></div>
               </div>
       </div>           
</div>




<table id="list2"></table>
<div id="pager2"></div>

</body>
</asp:Content>
